package com.rm.zeyou.mapper;

import com.rm.zeyou.entity.DictConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 系统参数配置 Mapper 接口
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:08
 */
@Mapper
public interface DictConfigMapper extends BaseMapper<DictConfig> {
    @Select("select value from t_dict_config where code = 'default_avatar' ")
    String defaultAvatar();

    @Select("select value from t_dict_config where code = 'default_nikename' ")
    String defaultNikename();

    @Select("select value from t_dict_config where code = 'invite_user_bg' ")
    String getInviteUserBg();

    @Select("select value from t_dict_config where code = 'gaode_key' ")
    String getGaoDeKey();

    @Select("select value from t_dict_config where code = #{code} ")
    String selectValue(@Param("code") String code);
}
